fix(adf): remediate agent spawning for opencode, model flags, resource limits, compound review#731
Open
AlexMikhalev wants to merge 5 commits intomainfrom
Open
fix(adf): remediate agent spawning for opencode, model flags, resource limits, compound review#731AlexMikhalev wants to merge 5 commits intomainfrom
AlexMikhalev wants to merge 5 commits intomainfrom
Conversation
WorktreeManager::with_base() now resolves relative worktree_base paths against repo_path, preventing CWD-dependent behaviour when the ADF binary runs from /opt/ai-dark-factory/ via systemd but the repo lives elsewhere. Refs #104 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…n and latency tracking Refs #116 - Extend CostTracker with ExecutionMetrics for per-run token/latency/cost capture - Add AgentMetrics for aggregated per-agent statistics - Create metrics_persistence module for terraphim_persistence integration - Implement InMemoryMetricsPersistence for testing - Add fleet-wide metrics aggregation - Export new types from lib.rs Phase 1 complete: Per-agent cost/token/latency metrics captured and ready for storage.
…rce limits, compound review) Refs #117
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
run --format jsonargs and-mmodel flagprovider/modelstring in orchestrator for opencode agentsresource_limitsthroughSpawnRequestto spawnerpoll_agent_exits()to kill hung agentscli_tool,provider,modelfromCompoundReviewConfigTest plan
cargo test -p terraphim_spawner-- 46 tests pass (includes 4 new opencode tests + 3 resource_limits tests)cargo test -p terraphim_orchestrator-- 13 tests pass (includes 2 new composition tests + 1 timeout test)cargo clippy -p terraphim_spawner -p terraphim_orchestrator -- -D warnings-- cleanFixes Gitea #117
Related: Gitea #105, #104, #106
Generated with Claude Code